import 'package:my_test_demo/IBaseModel.dart';
import 'package:my_test_demo/IBasePresenter.dart';
import 'package:my_test_demo/IBaseView.dart';

abstract class BasePresenter<M extends IBaseModel, V extends IBaseView> extends IBasePresenter {
  late M model;
  late V view;

  BasePresenter(this.view) {
    model = createModel();
  }

  M createModel();

  @override
  void dispose() {
    model.dispose();
  }

}
